package com.xingtai.db;

import java.sql.SQLException;
import java.util.Hashtable;

import org.apache.log4j.Logger;


public class TestDBBean extends DBBaseBean {
	
	private static final long serialVersionUID = -7628811655732549205L;

	private Logger logger = Logger.getLogger(TestDBBean.class);
	
	private static TestDBBean instanceDBBean = new TestDBBean();
	
	private TestDBBean(){}
	
	public static TestDBBean getInstance(){
		return instanceDBBean;
	}
	
	public String testQuery() throws SQLException{
		StringBuilder sql = new StringBuilder();
		sql.append("select * from test");
		String name = ((Hashtable)getResult(sql.toString()).get(0)).get("NAME").toString();
		return name;
	}
	
}
